#include "seracher.hpp"
#include <iostream>
#include <string>

const std::string input = "data/raw_html/raw.txt";

int main()
{
    ns_seracher::Searcher *search = new ns_seracher::Searcher();
    search->InitSercher(input);

    std::string query;
    std::string json_string;
    while (true)
    {
        std::cout << "Plase Enter Your Search Query# ";
        std::cin >> query;
        search->Search(query,&json_string);

        std::cout << json_string << std::endl;
    }
    std::cout << json_string << std::endl;

    return 0;
}